<div class="container">
	<div class="row-fluid">
		<div class="span8">
			<?php include(__DIR__.'/_message.phtml'); ?>
			<?php if(isset($query) && $query): ?>
			<h1>Search Results for: <?php echo $query; ?></h1>
			<?php else: ?>
			<h1>Community Questions &amp; Answers</h1>
			<?php endif; ?>
			<?php if($collection->count()): ?>
			<?php foreach($collection as $post): ?>
			<?php include(__DIR__.'/_post.phtml'); ?>
			<?php endforeach; ?>
			<div class="pagination"><?php echo $pagination; ?></div>
			<?php else: ?>
			<p>Could not find any results.</p>
			<?php endif; ?>
		</div>
		<?php include(__DIR__.'/_right.phtml'); ?>
	</div>
</div>